package com.ljx.itbbs.server.article.domain.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-27  18:26
 */
@Getter
@AllArgsConstructor
public enum CollectEnum {

    ARTICLE("article:", "文章", 1);

    private String prefix;
    private String desc;
    private Integer type;

    public static String getObjKey(CollectEnum collectEnum, String objId){
        return collectEnum.getPrefix() + objId;
    }

}
